
using System;
using System.Collections.Generic;
using System.Text;

namespace Weight.Base
{
   public  interface IConfigManager
    {
        /// <summary>
        /// 配置文件的路径
        /// </summary>
        string ConfigPath { get; }


        /// <summary>
        /// 读取配置文件
        /// </summary>
        /// <returns></returns>
        T readConfig<T>();


        /// <summary>
        /// 保存节点配置i
        /// </summary>
        /// <returns></returns>
        bool saveConfig<T>( T entity);


        /// <summary>
        /// 升级
        /// </summary>
        /// <param name="entity">参数配置</param>
        /// <returns></returns>
        bool Upgrade<T>(T entity);


    }
}


